package com.ruoyi.worker.domain.v2;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: 陈宇寰
 * @date: 2021-12-25 21:20:57
 * @params:
 * @return:
 * @description: v1.2 日考勤记录打卡详情历史记录
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class RzAttendanceSumDailyRecordDetailHistoryV2Domain extends BaseEntity {

    private Integer id;
    /**
     * 对应记录ID
     */
    private Integer detailId;
    /**
     * 员工姓名
     */
    private String name;
    /**
     * 身份证号
     */
    private String idCard;
    /**
     * 用工日期
     */
    private Date workDate;
    /**
     * 打卡类型
     */
    private Integer signType;

    /**
     * 修改前考勤结果
     */
    private Integer signResultBefore;

    /**
     * 修改后考勤结果
     */
    private Integer signResultAfter;
    private String date;
    private String beforeResult;
    private String afterResult;

    public RzAttendanceSumDailyRecordDetailHistoryV2Domain(Integer detailId, String name, String idCard, Date workDate,
                                                           Integer signResultBefore, Integer signType) {
        this.detailId = detailId;
        this.name = name;
        this.idCard = idCard;
        this.workDate = workDate;
        this.signResultBefore = signResultBefore;
        this.signType = signType;
    }
}
